options locale=en_US validvarname=v7 skip=2;
* options ps=6000 ls=130 nocenter NODATE nodate skip=2 nofmterr FORMCHAR='|----|+|---+=|-/\<>*';
options ps=6000 ls=120 nocenter NODATE nofmterr;

** project path;
%let __prjpath=E:/Users/&sysuserid./xxx;
/* Change workding directory */
%put %sysfunc(dlgcdir("&__prjpath./SAS"));

** edoc path;
%let _vpath=.;
** local lib;
%let _loclib=&_prjpath./data;

libname user ".";
libname rawd "&_loclib." access=readonly;

** edoc;
LIBNAME vvadam "&_vpath./adam" access=readonly;
LIBNAME vvsdtm "&_vpath./sdtm" access=readonly;

** data from edoc;
LIBNAME vsdtm "&_loclib./vsdtm" access=readonly;
LIBNAME vadam "&_loclib./vvad" access=readonly;

** local;
LIBNAME vaddw "&_loclib./vad";
LIBNAME vadd "&_loclib./vad" access=readonly;

** fmtsearch;
libname fmtpth "&_prjpath/SAS/format";
options fmtsearch=(fmtpth);


filename mylib "&_prjpath/SAS/macros";
libname mylib "&_prjpath/SAS/macros";
options mstored sasmstore=mylib;

** %let _upath = %sysget(USERPROFILE);
FILENAME smcrolib "&_prjpath/SAS/macros";

filename mymacro "&_prjpath/SAS/macros";
options mautosource
  SASAUTOS= (
  smcrolib,
  mymacro,
  sasautos
  );

*options cmplib=user.funcs;
